package jp.co.nes.awssupport.business.logic.description;

import jp.co.nes.awssupport.business.bean.BillingCsvBean;

/**
 * CloudWatch用の説明作成です。
 */
public class AmazonCloudWatchDescriptionImpl extends BaseDescriptionImpl {

    /**
     * デフォルトコンストラクタです。
     */
    public AmazonCloudWatchDescriptionImpl() {
    }

    /*
     * (非 Javadoc)
     * @see jp.co.nes.awssupport.business.logic.description.BaseDescriptionImpl#createDescriptionForOnDemand(jp.co.nes.awssupport.business.bean.BillingCsvBean)
     */
    @Override
    protected String createDescriptionForOnDemand(BillingCsvBean csvBean) {
        String usageType = csvBean.getUsageType();
        String result = super.createDescriptionForOnDemand(csvBean);
        if ("DataProcessing-Bytes".equals(usageType) || "TimedStorage-ByteHrs".equals(usageType)) {
            result = result + "(Legacy)";
        }
        return result;
    }
}
